package com.ouheng.shop.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.ouheng.shop.dao.RedcodeDao;
import com.ouheng.shop.domain.RedcodeDO;
import com.ouheng.shop.service.RedcodeService;



@Service
public class RedcodeServiceImpl implements RedcodeService {
	@Autowired
	private RedcodeDao redcodeDao;
	
	@Override
	public RedcodeDO get(Long id){
		return redcodeDao.get(id);
	}
	
	@Override
	public List<RedcodeDO> list(Map<String, Object> map){
		return redcodeDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return redcodeDao.count(map);
	}
	
	@Override
	public int save(RedcodeDO redcode){
		return redcodeDao.save(redcode);
	}
	
	@Override
	public int update(RedcodeDO redcode){
		return redcodeDao.update(redcode);
	}
	
	@Override
	public int remove(Long id){
		return redcodeDao.remove(id);
	}
	
	@Override
	public int batchRemove(Long[] ids){
		return redcodeDao.batchRemove(ids);
	}
	
}
